import request from '@/utils/request'

// 查询赔率信息列表
export function listAdminOdds(query) {
  return request({
    url: '/system/adminOdds/list',
    method: 'get',
    params: query
  })
}

// 查询赔率信息详细
export function getAdminOdds(id) {
  return request({
    url: '/system/adminOdds/' + id,
    method: 'get'
  })
}

// 新增赔率信息
export function addAdminOdds(data) {
  return request({
    url: '/system/adminOdds',
    method: 'post',
    data: data
  })
}

// 修改赔率信息
export function updateAdminOdds(data) {
  return request({
    url: '/system/adminOdds',
    method: 'put',
    data: data
  })
}

// 删除赔率信息
export function delAdminOdds(id) {
  return request({
    url: '/system/adminOdds/' + id,
    method: 'delete'
  })
}

// 导出赔率信息
export function exportAdminOdds(query) {
  return request({
    url: '/system/adminOdds/export',
    method: 'get',
    params: query
  })
}